file=open(r"./new.txt","w")
mystr="hello python"
file.write(mystr) #mystr自动编码,ASCII,
file.close()